#!/bin/bash

# 修复所有Java文件中的log问题
cd /Users/lilanfeng/CPP_CODE/memento-parent/memento-web

# 替换所有log调用
find src -name "*.java" -type f -exec sed -i '' 's/log\.error/System.out.println/g' {} \;
find src -name "*.java" -type f -exec sed -i '' 's/log\.info/System.out.println/g' {} \;
find src -name "*.java" -type f -exec sed -i '' 's/log\.warn/System.out.println/g' {} \;
find src -name "*.java" -type f -exec sed -i '' 's/log\.debug/System.out.println/g' {} \;

echo "修复完成！"
